home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / software / radiance / ez3d / unix / _mc.rs next >
Text File  |  1996-09-21  |  1KB  |  87 lines

  1. #!/bin/sh
  2. #
  3. ##########################################################################
  4. # Copyright (c) 1993-5 by Radiance Software
  5. #
  6. # All rights reserved. This listing of source code is proprietary and
  7. # confidential to Radiance Software. It may not be copied or made 
  8. # available in any form (electronic or hard copy) to any person not
  9. # authorized by Radiance Software.
  10. # Unpublished - Rights reserved under all copyright laws
  11. #
  12. # Radiance Software, 1726 Francisco Street, Berkeley, CA 94703
  13. #
  14. ##########################################################################
  15.  
  16. ###########################################################################
  17. #
  18. # Echo which machine architecture. Currently supported machines include:
  19. #
  20. #     sun
  21. #     sgi
  22. #     hp
  23. #     ibm
  24. #
  25. ###########################################################################
  26.  
  27. case $1 in
  28.    -u) U=1;;
  29.     *) U=;;
  30. esac
  31.  
  32. MC=sgi
  33. MCU=SGI
  34. UN=IRIX
  35. if [ "`uname | cut -c1-4`" = "$UN" ]; then
  36.    if [ "$U" = "1" ]; then
  37.       echo $MCU
  38.    else
  39.       echo $MC
  40.    fi
  41.    exit 0;
  42. fi
  43.  
  44. MC=sun
  45. MCU=SUN
  46. UN=SunOS
  47. if [ "`uname`" = "$UN" ]; then
  48.    if [ "$U" = "1" ]; then
  49.       echo $MCU
  50.    else
  51.       echo $MC
  52.    fi
  53.    exit 0;
  54. fi
  55.  
  56.  
  57. MC=hp
  58. MCU=HP
  59. UN=HP-UX
  60. if [ "`uname`" = "$UN" ]; then
  61.    if [ "$U" = "1" ]; then
  62.       echo $MCU
  63.    else
  64.       echo $MC
  65.    fi
  66.    exit 0;
  67. fi
  68.  
  69.  
  70. MC=ibm
  71. MCU=IBM
  72. UN=AIX
  73. if [ "`uname`" = "$UN" ]; then
  74.    if [ "$U" = "1" ]; then
  75.       echo $MCU
  76.    else
  77.       echo $MC
  78.    fi
  79.    exit 0;
  80. fi
  81.  
  82. echo unknown
  83. exit 1
  84.  
  85.  
  86.